<?php
$string = "<xml>
	<ToUserName><![CDATA[gh_720688f7b5c4]]></ToUserName>
	<FromUserName><![CDATA[oVlfXshaeFa9-B8Zn_cNewYCKWvE]]></FromUserName>
	<CreateTime>1574388163</CreateTime>
	<MsgType><![CDATA[text]]></MsgType>
	<Content><![CDATA[999]]></Content>
	<MsgId>22539816992615263</MsgId>
</xml>";

//simplexml_load_string -- 将XML字符串解释为对象
$xml = simplexml_load_string($string);

echo "<pre>";
print_r($xml);
echo "</pre>";

echo $xml->ToUserName;

echo "<hr>";
echo $xml->CreateTime;


?>